static_resources:
  listeners:
  - address:
      socket_address:
        address: 127.0.0.1
        port_value: {{ data['kafka_envoy_port'] }}
    filter_chains:
    - filters:
      - name: kafka
        typed_config:
          "@type": type.googleapis.com/envoy.extensions.filters.network.kafka_broker.v3.KafkaBroker
          stat_prefix: testfilter
      - name: tcp
        typed_config:
          "@type": type.googleapis.com/envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy
          stat_prefix: ingress_tcp
          cluster: localinstallation
  clusters:
  - name: localinstallation
    connect_timeout: 0.25s
    load_assignment:
      cluster_name: localinstallation
      endpoints:
      - lb_endpoints:
        - endpoint:
            address:
              socket_address:
                address: 127.0.0.1
                port_value: {{ data['kafka_real_port'] }}
admin:
  profile_path: /dev/null
  address:
    socket_address: { address: 127.0.0.1, port_value: {{ data['envoy_monitoring_port'] }} }
